package com.hqyj.javaSpringBoot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.javaSpringBoot.modules.account.entity.Role;
import com.hqyj.javaSpringBoot.modules.common.entiy.ResultEntity;
import com.hqyj.javaSpringBoot.modules.common.entiy.SearchBean;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface RoleService {

    ResultEntity<Role> insertRole(Role role);

    ResultEntity<Role> deleteRole(int id);

    ResultEntity<Role> updateRole(Role role);

    Role getRoleByRoleId(int id);

    PageInfo<Role> getRoleBySearch(SearchBean searchBean);

    List<Role> getRoles();

    List<Role> getRolesByUserId(int userId);

    List<Role> getRolesByResourceId(int resourceId);
}
